package manager;

import lombok.extern.slf4j.Slf4j;
import service.WxServiceImpl;
import util.Request;

import java.io.InputStream;
import java.util.Map;

@Slf4j
public class UserManager {
    static InputStream in= TemplateMessage.class.getClassLoader().getResourceAsStream("wx-config.xml");
    static Map<String,String> Xmlmap= WxServiceImpl.parseRequest(in);
    private static final String getOpenIdList=Xmlmap.get("getOpenIdList");

    public static void main(String[] args) {
        log.info(getOpenIdList());
    }

    private static String getOpenIdList(){
        return Request.get(getOpenIdList.replace("ACCESS_TOKEN",WxServiceImpl.getAccessToken()));
    }
}
